
package com.hlkj.pay.infrastructure.model.order;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 商户提现表
 * 
 * @TableName t_order_withdraw
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("t_order_withdraw")
public class OrderWithdrawDO extends OrderBaseDO {

    /**
     * 通道订单编号
     */
    @Schema(description = "通道订单编号")
    private String channelOrderNo;

    /**
     * 订单金额
     */
    @Schema(description = "订单金额")
    private BigDecimal amount;
    @Schema(description = "手续费金额")
    private BigDecimal feeAmount;

    /**
     * 账号编码
     */
    @Schema(description = "账号编码")
    private String bankCardId;

    /**
     * 备注
     */
    @Schema(description = "消息提示")
    private String message;

    @Schema(description = "成功时间")
    private Long successTime;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 状态 1=初始化，2=处理中，3=成功，4=失败
     * @see com.hlkj.pay.enums.MerchantEnum.PROCESS_STATUS
     */
    @Schema(description = "状态 0=初始化，2=处理中，3=成功，4=失败")
    private Integer status;
    @Schema(description = "userId")
    private String userId;

}
